package com.itheima.mall.service.omsService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mall.mapper.omsMapper.OmsCompanyAddressMapper;
import com.itheima.pojo.oms.OmsCompanyAddress;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OmsCompanyAddressApiImpl implements OmsCompanyAddressApi{
    @Autowired
    private OmsCompanyAddressMapper omsCompanyAddressMapper;

    @Override
    public List<OmsCompanyAddress> list() {
        LambdaQueryWrapper<OmsCompanyAddress> queryWrapper = new LambdaQueryWrapper<>();
       return omsCompanyAddressMapper.selectList(queryWrapper);

    }
}
